import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './vant'
import 'amfe-flexible'
import './styles/index.less'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/zh-cn'
dayjs.extend(relativeTime)
dayjs.locale('zh-cn')

console.log()

Vue.config.productionTip = false

Vue.filter('formatDate', (date) => {
  return dayjs().to(date)
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
